﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharepointSolutionInstaller.Resources;
using SharepointSolutionInstaller.Views;
using SharepointSolutionInstaller.Utils.Configuration;

namespace SharepointSolutionInstaller.Utils.SolutionDeployment
{
    /// <summary>
    /// Command that unregisters the version number of a solution.
    /// </summary>
    public class UnregisterVersionNumberCommand : Command
    {
        internal UnregisterVersionNumberCommand(InstallProcess parent) : base(parent) { }

        internal override string Description
        {
            get
            {
                return CommonUIStrings.unregisterVersionNumberCommand;
            }
        }

        protected internal override bool Execute()
        {
            InstallConfiguration.InstalledVersion = null;
            return true;
        }
    }
}
